{config_load file=global.conf}
{config_load file="_forecasts.conf" section="`$lang`"}

<script type="text/javascript" language="JavaScript" src="scripts/globalFuncs.js" ></script>
{*
{$nofcast}
<div id="divPlots" name="divPlots"></div>
<br/>
<div id="divEmpty" name="divEmpty"></div>

{literal}
<script type="text/javascript">



<!--

    function afterBodyLoaded(){
        {/literal}
        xajax_showLastForecasts({$Staff->GetSystem()});
        {literal}
    }

    addLoadEvent(afterBodyLoaded);
    {/literal}
    setInterval("xajax_showLastForecasts({$Staff->GetSystem()})", 120000);
    {literal}

    /*
    if (document.getElementById("pairsCount").value==0 && document.getElementById("pairsCountAll").value!=0) {
       	document.getElementById("divEmpty").innerHTML =
        {/literal}        "<b>{#_forecasts__msgNoForecast#}<br> {#_forecasts__msgAccountStart#} <a href='/{$lang}/settings.html'>{#_forecasts__msgAccountLink#}</a>{#_forecasts__msgAccountFinish#}</b>";        {literal}
    } else if (document.getElementById("pairsCountAll").value==0) {
        document.getElementById("divEmpty").innerHTML =
        {/literal} "<b>{#_forecasts__msgNoForecastAll#}<br> {#_forecasts__msgAccountStart1#} <a href='/{$lang}/settings.html'>{#_forecasts__msgAccountLink1#}</a>{#_forecasts__msgAccountFinish1#}</b>";        {literal}
    }
    */
// -->
</script>
{/literal}


<div>
*}

<div id="divDashboard" style="display:block"> &nbsp; </div>

{*literal*}
<script type="text/javascript">
<!--
{literal}
	function Func1(){
   		document.getElementById('loadMessage').style.display = 'block';
   }

   function Func2(){
   		document.getElementById('loadMessage').style.display = 'none';
   }


    function afterBodyLoaded(){
    	xajax.loadingFunction = Func1;
   		xajax.doneLoadingFunction = Func2;
{/literal}
    xajax_ShowDashboard({$Staff->UserID()});
    	setInterval("xajax_ShowDashboard({$Staff->UserID()})", 120000);
{literal}
   }


   addLoadEvent(afterBodyLoaded);

   {/literal}


// -->
</script>
{*/literal*}
<div id="loadMessage" style="font-size: 12pt; display: block;">
            <img src="{#images_dir#}/loading.gif">&nbsp;<b>Loading...</b>
</div>
